var util = require('../../../utils/util.js');
var api = require('../../../config/api.js');
Page({

  /**
   * 页面的初始数据
   */
  data: {
    phone:''
  },

  /**
   * 生命周期函数--监听页面加载
   */
  onLoad: function (options) {
    if (options.phone) {
      this.setData({
        phone: options.phone
      });
    }
  },
  toReg: function (e) {
    wx.setStorageSync('info', e.detail.userInfo);
    wx.navigateTo({
      url: '/pages/register/register3/register3?phone=' + this.data.phone
    })
  },
  
})